﻿<ContentDialog
    x:Class="WinKee.Dialogs.PINDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WinKee"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Title="WinKee - App Password"
    FullSizeDesired="True"
    PrimaryButtonText="ok"  
    SecondaryButtonText="cancel"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    SecondaryButtonClick="ContentDialog_SecondaryButtonClick" Opened="ContentDialog_Opened">

    <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
        <TextBlock Text="Enter the application password:"/>
        <PasswordBox Name="password" Header="Password" />
        <StackPanel Orientation="Horizontal" Margin="0,0,0,30">
            <StackPanel.Resources>
                <Style TargetType="TextBlock">
                    <Setter Property="FontWeight" Value="Bold"/>
                    <Setter Property="Margin" Value="3"/>
                    <Setter Property="Foreground" Value="{StaticResource PhoneAccentBrush}"/>
                </Style>
            </StackPanel.Resources>
            <TextBlock Text="Remaining attempts:"/>
            <TextBlock Text="3" Name="RemainingAttemptsTextBlock"/>
        </StackPanel>
        <TextBlock Foreground="DarkGray" Margin="3" TextWrapping="WrapWholeWords" Text="If you don't enter the correct password in three attempts, the application will close."/>
        <TextBlock Foreground="DarkGray" Margin="3" TextWrapping="WrapWholeWords" Text="Cancelling this dialog will also close the application."/>
    </StackPanel>
</ContentDialog>
